﻿<%@ Page Language="C#" AutoEventWireup="true"  MasterPageFile="~/MasterPage.master" CodeFile="ClientesAdmin.aspx.cs" Inherits="Informes_ClientesAdmin" %>

<asp:Content ID="Content1"  ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div style="text-align: center; vertical-align: text-top;">
        
<table class="tablaForm" style=" width: 100%; text-align:left">
    <tr>
        <td class="tdInfo" align="right" colspan="3">
            Ventas por Cliente</td></tr><tr><td style="WIDTH: 20%" class="tdForm" align="right">
            C&oacute;digo:&nbsp;</td><td style="WIDTH: 80%" class="tdForm" align="left"><asp:TextBox id="txtCodigo" runat="server" CssClass="cuadrotxt"></asp:TextBox></td>
    </tr>
    <tr>
        <td style="WIDTH: 20%" class="tdForm" align="right">
            Cliente:&nbsp;</td><td style="WIDTH: 80%" class="tdForm" align="left">
            <asp:TextBox id="txtNombre" runat="server" CssClass="cuadrotxt100"></asp:TextBox> 
        </td>
        </tr>
    <tr>
        <td class="tdBotones" colspan="2">
            <asp:Button id="btnBuscar" onclick="btnBuscar_Click" runat="server" Text="Buscar" Width="75px"></asp:Button>&nbsp;
            <asp:Button id="btnCancelar" onclick="btnCancelar_Click" runat="server" Text="Cancelar" Width="75px"></asp:Button>
            </td>
    </tr>
    <tr>
        <td style="WIDTH: 100%" class="tdForm" colspan="3">
            <asp:GridView id="gvClientes" runat="server" BorderWidth="1px" BackColor="White" Width="100%" OnPageIndexChanging="gvClientes_PageIndexChanging" 
                OnSelectedIndexChanged="gvClientes_SelectedIndexChanged" CellPadding="3" AllowPaging="True" AutoGenerateColumns="False" 
                DataKeyNames="Id_Cliente" BorderColor="#999999" BorderStyle="None" GridLines="Vertical" OnRowDeleting="gvClientes_RowDeleting">
            <FooterStyle BackColor="#CCCCCC" ForeColor="Black"></FooterStyle>
                <columns>
                    <asp:TemplateField HeaderText="C&#243;digo">
                        <HeaderStyle ForeColor="White" HorizontalAlign="Center"></HeaderStyle>
                        <ItemTemplate>
                            <asp:Label id="Código" runat="server" Text='<%# Bind("Id_Cliente") %>'></asp:Label> 
                        </ItemTemplate>
                        </asp:TemplateField>
                     <asp:TemplateField HeaderText="Cliente">
                        <HeaderStyle ForeColor="White" HorizontalAlign="Center"></HeaderStyle>
                        <ItemTemplate>
                            <asp:Label id="Titular" runat="server" Text='<%# Bind("Nombre") %>'></asp:Label> 
                        </ItemTemplate>
                        </asp:TemplateField>
                    <asp:TemplateField HeaderText="Saldo">
                        <HeaderStyle ForeColor="White" HorizontalAlign="Center"></HeaderStyle>
                        <ItemTemplate>
                            <asp:Label id="Saldo" runat="server" Text='<%# Bind("Saldo","{0:F2}") %>'></asp:Label> 
                        </ItemTemplate>
                        </asp:TemplateField>
                    <asp:TemplateField ShowHeader="False">
                        <HeaderStyle ForeColor="White"></HeaderStyle>
                        <ItemTemplate>
                            <asp:LinkButton runat="server" Text="Seleccionar" CommandName="Select" CausesValidation="False" id="LinkButton2"></asp:LinkButton>
                        </ItemTemplate>
                        </asp:TemplateField>
                </columns>
                <RowStyle BackColor="#EEEEEE" ForeColor="Black" HorizontalAlign="Center"></RowStyle>
                <EditRowStyle Wrap="True"></EditRowStyle>
                <SelectedRowStyle BackColor="#008A8C" ForeColor="White" Font-Bold="True"></SelectedRowStyle>
                <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center"></PagerStyle>
                <HeaderStyle BackColor="#325FB9" ForeColor="White" Font-Names="Arial Rounded MT Bold" Font-Bold="True"></HeaderStyle>
                <AlternatingRowStyle BackColor="Gainsboro"></AlternatingRowStyle>
            </asp:GridView>
            </td>
            </tr>
        </table><br /><br />
    </div>
</asp:Content>
